import request from '@/utils/request'

// 查询企业卡券申请订单列表
export function listCardOrder(query) {
  return request({
    url: '/film/cardOrder/list',
    method: 'get',
    params: query
  })
}

// 查询企业卡券申请订单详细
export function getCardOrder(id) {
  return request({
    url: '/film/cardOrder/' + id,
    method: 'get'
  })
}

// 新增企业卡券申请订单
export function addCardOrder(data) {
  return request({
    url: '/film/cardOrder',
    method: 'post',
    data: data
  })
}

// 修改企业卡券申请订单
export function updateCardOrder(data) {
  return request({
    url: '/film/cardOrder',
    method: 'put',
    data: data
  })
}

// 删除企业卡券申请订单
export function delCardOrder(id) {
  return request({
    url: '/film/cardOrder/' + id,
    method: 'delete'
  })
}
